import Vue from 'vue'
import Vuex from 'vuex'
import auth from './modules/auth'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
    Adduser(state, payload) {
    }
  },
  actions: {
    //异步代码
    asyncAdduser(context, payload) {
      setTimeout(() => {
        context.commit('Adduser', payload)
      }, 1000)
    }
  },
  modules: {
    auth
  }
})
